<?php
namespace app\controller;

use app\BaseController;
use think\facade\View;
use think\facade\Db;
use think\facade\Request;
use think\facade\Session;
use think\facade\Filesystem;

class deta extends BaseController
{
    public function index()
    {
        $img = Db::table('shop_goods')->select();
            $list = Db::table('shop_goods')->paginate(6);   //分页
        // }
        $right = $list;
        View::assign([
            'img'  => $img,
            'list' =>$list
        ]); 
        return View::fetch();
    }
   
}